package cn.chengpengper.seckill.common.response;

import lombok.Data;
import lombok.ToString;

import java.io.Serializable;

/**
 * @author chengpeng.hu
 */
@Data
@ToString
public class ResponseMessage<T> implements Serializable {

    private static final long serialVersionUID = 321858590691559158L;

    private Integer code;

    private T data;

    public ResponseMessage() {
    }

    public ResponseMessage(Integer code) {
        this.code = code;
    }

    public ResponseMessage(Integer code, T data) {
        this.code = code;
        this.data = data;
    }
}
